package com.zj.common.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.zj.common.dao.UserDao;
import com.zj.common.entity.User;
@Transactional
@Service 
public class UserService {
@Autowired
private UserDao userdao;
public void save(User user) {  
	userdao.saveUser(user);;  
 }  
  
 public List<User> getSALLUser() {  
	 List<User> list =userdao.getAllUser(); 
    return list;  
 } 
 
 public User getUser(Integer id) {  
	 User user =userdao.getUser(id); 
    return user;  
 } 
}
